package movierental.entity;

import java.math.BigDecimal;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;

@Entity
@Table(name="TB_Movie")
public class Movie {
	
	@Id
	@Column(name="movie_id", length=10, nullable=false)
	private String kodeMovie;
	
	@Column(name="judul_movie", length=255, nullable=false)
	private String judulMovie;
	
	@Column(name="format_movie", length=255, nullable=false)
	private String formatMovie;
	
	@Column(name="harga_movie", nullable=false)
	private BigDecimal hargaMovie;

    public String getFormatMovie() {
        return formatMovie;
    }

    public void setFormatMovie(String formatMovie) {
        this.formatMovie = formatMovie;
    }

    public BigDecimal getHargaMovie() {
        return hargaMovie;
    }

    public void setHargaMovie(BigDecimal hargaMovie) {
        this.hargaMovie = hargaMovie;
    }

    public String getJudulMovie() {
        return judulMovie;
    }

    public void setJudulMovie(String judulMovie) {
        this.judulMovie = judulMovie;
    }

    public String getKodeMovie() {
        return kodeMovie;
    }

    public void setKodeMovie(String kodeMovie) {
        this.kodeMovie = kodeMovie;
    }
	
}
